<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改收益统计')" />
    <th:block th:include="include :: datetimepicker-css" />
    </head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-incomeInfo-edit" th:object="${incomeInfo}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">
                <label class="col-sm-3 control-label">借记卡交易总额：</label>
                <div class="col-sm-8">
                    <input name="jjkAmount" th:field="*{jjkAmount}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">借记卡分润总额：</label>
                <div class="col-sm-8">
                    <input name="jjkProfit" th:field="*{jjkProfit}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">贷记卡交易总额：</label>
                <div class="col-sm-8">
                    <input name="djkAmount" th:field="*{djkAmount}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">贷记卡分润总额：</label>
                <div class="col-sm-8">
                    <input name="djkProfit" th:field="*{djkProfit}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">扫码交易总额：</label>
                <div class="col-sm-8">
                    <input name="smAmount" th:field="*{smAmount}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">扫码分润总额：</label>
                <div class="col-sm-8">
                    <input name="smProfit" th:field="*{smProfit}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">流量费总额：</label>
                <div class="col-sm-8">
                    <input name="llfAmount" th:field="*{llfAmount}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">服务费总额：</label>
                <div class="col-sm-8">
                    <input name="fwfAmount" th:field="*{fwfAmount}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">交易日期：</label>
                <div class="col-sm-8">
                    <input name="tradeDate" th:field="*{tradeDate}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">生成日期：</label>
                <div class="col-sm-8">
                    <input name="createDate" th:field="*{createDate}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">应付分润：</label>
                <div class="col-sm-8">
                    <input name="outProfit" th:field="*{outProfit}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">应付奖励：</label>
                <div class="col-sm-8">
                    <input name="notAward" th:field="*{notAward}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">已出分润：</label>
                <div class="col-sm-8">
                    <input name="ycProfit" th:field="*{ycProfit}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">已出奖励：</label>
                <div class="col-sm-8">
                    <input name="ycAward" th:field="*{ycAward}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">实付支出：</label>
                <div class="col-sm-8">
                    <input name="sjAmount" th:field="*{sjAmount}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">沉淀金额：</label>
                <div class="col-sm-8">
                    <input name="cdAmount" th:field="*{cdAmount}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var prefix = ctx + "incomeInfo";
        $("#form-incomeInfo-edit").validate({
            focusCleanup: true
        });

        $("input[name='date']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-incomeInfo-edit').serialize());
            }
        }
    </script>
</body>
</html>